package com.dupt.system.service;

import java.util.List;
import com.dupt.system.domain.AssembleMaterial;
import com.dupt.system.domain.param.AssembleMaterialParam;

/**
 * 组装用料Service接口
 * 
 * @author zhuanyu.sun
 * @date 2025-07-10
 */
public interface IAssembleMaterialService
{
    /**
     * 查询组装用料
     * 
     * @param assembleMaterialId 组装用料主键
     * @return 组装用料
     */
    public AssembleMaterial selectAssembleMaterialByAssembleMaterialId(Long assembleMaterialId);

    /**
     * 查询组装用料列表
     * 
     * @param assembleMaterialParam 组装用料
     * @return 组装用料集合
     */
    public List<AssembleMaterial> selectAssembleMaterialList(AssembleMaterialParam assembleMaterialParam);

    /**
     * 新增组装用料
     * 
     * @param assembleMaterial 组装用料
     * @return 结果
     */
    public int insertAssembleMaterial(AssembleMaterial assembleMaterial);

    /**
     * 修改组装用料
     * 
     * @param assembleMaterial 组装用料
     * @return 结果
     */
    public int updateAssembleMaterial(AssembleMaterial assembleMaterial);

    /**
     * 批量删除组装用料
     * 
     * @param assembleMaterialIds 需要删除的组装用料主键集合
     * @return 结果
     */
    public int deleteAssembleMaterialByAssembleMaterialIds(Long[] assembleMaterialIds);

    /**
     * 删除组装用料信息
     * 
     * @param assembleMaterialId 组装用料主键
     * @return 结果
     */
    public int deleteAssembleMaterialByAssembleMaterialId(Long assembleMaterialId);

    /**
     * 领料
     *
     * @param assembleMaterialId
     * @param receiveCount
     * @return
     */
    public int receiveAssembleMaterialByAssembleMaterialId(Long assembleMaterialId, Long receiveCount);

    /**
     * 退料
     * @param assembleMaterialId
     * @return
     */
    public int sendBackAssembleMaterialByAssembleMaterialId(Long assembleMaterialId, Long sendCount);

    /**
     * 确认领料
     * @param assembleMaterialParam
     * @return
     */
    public int affirmAssembleMaterial(AssembleMaterialParam assembleMaterialParam);

    /**
     * 退料
     * @param assembleMaterialParam
     * @return
     */
    public int returnAssembleMaterial(AssembleMaterialParam assembleMaterialParam);

}
